<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>粘连布局</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        html,body{
            height: 100%;
        }
        .content{
            min-height: 100%;
            background-color: #ccc;
            padding-bottom: 200px;
            box-sizing: border-box;
        }
        .footer{
            height: 200px;
            background-color: #acf;
            margin-top: -200px;
        }
    </style>
</head>
<body>
    <div class="content">
        <div class="main">
            a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/br/>a<br/>a<br/>a<br/>>a<br/>a<br/>a<br/>a<br/>>a<br/>a<br/>a<br/>a<br/>>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>
        </div>
    </div>
    <div class="footer"></div>
</body>
</html>